package com.ruoyi.shopping.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 批量生成CDK对象 jy_mall_cdk
 *
 * @author ruoyi
 * @date 2022-07-26
 */
@ApiModel
public class MallCdk extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @ApiModelProperty(value = "${comment}")
    private Long id;

    /** 优惠券名称*/
    @Excel(name = "优惠券名称")
    private String couponName;

    public String getCouponName() {
        return couponName;
    }

    public void setCouponName(String couponName) {
        this.couponName = couponName;
    }

    /** 优惠券id */
//    @Excel(name = "优惠券id")
    @ApiModelProperty(value = "优惠券id")
    private Long couponId;

    /** 兑换码 */
    @Excel(name = "兑换码")
    @ApiModelProperty(value = "兑换码")
    private String cdked;

    /** 是否已兑换 */
//    @Excel(name = "是否已兑换")
    @ApiModelProperty(value = "是否已兑换")
    private String ifConversion;

    /** 领取人id */
//    @Excel(name = "领取人id")
    @ApiModelProperty(value = "领取人id")
    private Long memberId;

    /** 领取时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "领取时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "领取时间")
    private Date getTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setCouponId(Long couponId)
    {
        this.couponId = couponId;
    }

    public Long getCouponId()
    {
        return couponId;
    }
    public void setCdked(String cdked)
    {
        this.cdked = cdked;
    }

    public String getCdked()
    {
        return cdked;
    }
    public void setIfConversion(String ifConversion)
    {
        this.ifConversion = ifConversion;
    }

    public String getIfConversion()
    {
        return ifConversion;
    }
    public void setMemberId(Long memberId)
    {
        this.memberId = memberId;
    }

    public Long getMemberId()
    {
        return memberId;
    }
    public void setGetTime(Date getTime)
    {
        this.getTime = getTime;
    }

    public Date getGetTime()
    {
        return getTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("couponId", getCouponId())
                .append("cdked", getCdked())
                .append("ifConversion", getIfConversion())
                .append("memberId", getMemberId())
                .append("getTime", getGetTime())
                .append("delState", getDelState())
                .append("delUser", getDelUser())
                .append("delType", getDelType())
                .append("delTime", getDelTime())
                .append("createBy", getCreateBy())
                .append("createType", getCreateType())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateType", getUpdateType())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}